{% extends "races/m_base.html" %}

{% block content %}
<table>
 <tr><th>Name</th><th>Diff</th><th>Len</th><th>Elev +</th><th>Elev -</th><th>Delta</th></tr>
{% for leg in race.leg_set.all %}
 <tr class="{% cycle '' 'alt' %}">
  <td>{{ leg.name }}</td>
  <td align='center'>{{ leg.difficulty }}</td>
  <td align='right'>{{ leg.length }}</td>
  <td align='right'>{{ leg.elev_gain }}</td>
  <td align='right'>{{ leg.elev_loss }}</td>
  <td align='right'>{{ leg.elev_change }}</td>
 </tr>
{% endfor %}
</table>
{% endblock %}
